package com.stenio.fancat.domain.shop;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.stenio.fancat.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("fc_order")
public class FcOrder extends BaseEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("order_id")
    private String orderId;

    @TableField("business_id")
    private Integer businessId;

    @TableField("user_id")
    private String userId;

    @TableField("order_status")
    private Integer orderStatus;

    @TableField("order_price")
    private Integer orderPrice;

    @TableField("receive_name")
    private String receiveName;

    @TableField("receive_tel")
    private String receiveTel;

    @TableField("receive_address")
    private String receiveAddress;

    @TableField("logistic_no")  //物流单号
    private String logisticNo;

    @TableField("logistic_company")  //物流公司
    private String logisticCompany;

    @TableField("send_time")
    private Date sendTime;

    @TableField("task_id")  //活动编号
    private Integer taskId;

    @TableField("feature")
    private String feature;

    @TableField("description")
    private String description;

    @TableField("money")
    private BigDecimal money;

    @TableField("order_type")  //订单类型 1.兑换商城订单 2.抽奖订单 3.红包订单 4.二手交易订单
    private Integer orderType;

    private Date createTimeBegin;
    private Date createTimeEnd;
}
